#!/usr/bin/env python3
# coding:utf-8
from loguru import logger

logger.add("out.log", backtrace=True, diagnose=True)  # 注意，在生产环境中可能会泄露敏感数据

def func(a, b):
    return a / b

def nested(c):
    try:
        func(5, c)
    except ZeroDivisionError:
        logger.exception("What?!")

nested(0)
